<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport"
          content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
    <title>登录博客后台</title>
    <meta http-equiv="Cache-Control" content="no-siteapp"/>
    <link rel="shortcut icon" th:href="@{/user/img/bloglogo.jpg}"/>
    <script th:src="@{/assets/js/jquery.js}"></script>
    <script th:src="@{/assets/js/zui.min.js}"></script>
    <script th:src="@{/assets/js/jquery.min.js}"></script>
    <script th:src="@{/assets/js/amazeui.min.js}"></script>
    <link rel="stylesheet" th:href="@{/assets/css/amazeui.min.css}"/>
    <link rel="stylesheet" th:href="@{/assets/css/login.css}"/>
    <link rel="stylesheet" th:href="@{/assets/css/zui.min.css}">

</head>

<body>

<div class="log">
    <!--  内部容器  -->
    <div class="search-box">
        <div class="img-box">
            <img src="./assets/img/background2.jpg" alt="img" class="img">
        </div>
        <div class="login-btn">
            <div class="login-text-box">
                <h2 class="login-text">登录界面</h2>
            </div>
            <form th:action="@{/login}" method="post">
                <div th:if="${param.error}" style="color: red;text-align: center" th:text="#{login.error}">用户名或密码错误!</div>
                <!--登录输入框-->
                <div class="input-control search-box search-box-circle has-icon-left" id="loginBox">
                    <input id="loginBtn" type="search" class="form-control search-input" th:placeholder="#{login.username}" name="username">
                    <label for="loginBtn" class="input-control-icon-left"><img src="./assets/img/user.png" class="icon-img"></label>
                </div>
                <!--密码输入框-->
                <div class="input-control search-box search-box-circle has-icon-left" id="passwordBox">
                    <input id="passwordBtn" type="search" class="form-control search-input" th:placeholder="#{login.password}" name="password">
                    <label for="passwordBtn" class="input-control-icon-left"><img src="./assets/img/password.png" class="icon-img"></label>
                </div>
                <!-- 登录按钮 -->
                <div class="btn-box">
                    <button class="btn btn-block" type="submit" th:value="#{login.sub}">登录</button>
                </div>
            </form>
            <!-- 图标等 -->
            <p class="icon-text">或者通过以下平台登录</p>
            <div class="social-media">
                <a href="#" class="social-icon">
                    <img src="assets/img/WeChat.png" class="icon-imgs">
                </a>
                <a href="#" class="social-icon">
                    <img src="assets/img/qq.png" class="icon-imgs">
                </a>
                <a href="#" class="social-icon">
                    <img src="assets/img/GitHub.png" class="icon-imgs">
                </a>
                <a href="#" class="social-icon">
                    <img src="assets/img/phone.png" class="icon-imgs">
                </a>
            </div>
        </div>

    </div>
<!--    <div class="am-g">-->
<!--        <div class="am-u-lg-3 am-u-md-6 am-u-sm-8 am-u-sm-centered log-content">-->
<!--            <h1 class="log-title am-animation-slide-top" style="color: black;" th:text="#{login.welcomeTitle}">~欢迎登录博客~</h1>-->
<!--            <br>-->
<!--            <div th:if="${param.error}" style="color: red" th:text="#{login.error}">用户名或密码错误!</div>-->
<!--            <form class="am-form" id="loginForm" th:action="@{/login}" method="post">-->
<!--                <div>-->
<!--                    <input type="hidden" name="url" th:value="${url}">-->
<!--                </div>-->
<!--                <div class="am-input-group am-radius am-animation-slide-left">-->
<!--                    <input type="text" class="am-radius" th:placeholder="#{login.username}" name="username" />-->
<!--                    <span class="am-input-group-label log-icon am-radius">-->
<!--                        <i class="am-icon-user am-icon-sm am-icon-fw"></i>-->
<!--                    </span>-->
<!--                </div>-->
<!--                <br>-->
<!--                <div class="am-input-group am-animation-slide-left log-animation-delay">-->
<!--                    <input type="password" class="am-form-field am-radius log-input" th:placeholder="#{login.password}" name="password" />-->
<!--                    <span class="am-input-group-label log-icon am-radius">-->
<!--                        <i class="am-icon-lock am-icon-sm am-icon-fw"></i>-->
<!--                    </span>-->
<!--                </div>-->
<!--                <div style="padding-top: 10px;">-->
<!--                    <input type="submit" th:value="#{login.sub}"-->
<!--                           class="am-btn am-btn-primary am-btn-block am-btn-lg am-radius am-animation-slide-bottom log-animation-delay" />-->
<!--                </div>-->
<!--            </form>-->
<!--        </div>-->
<!--    </div>-->

<!--    <footer class="log-footer">-->
<!--        <p style="margin: 30px; color: #2E2D3C"><time class="comment-time" th:text="${#dates.format(new java.util.Date().getTime(), 'yyyy')}"></time> &copy; Powered By <a style="color: #0e90d2" rel="nofollow">CrazyStone</a></p>-->
<!--    </footer>-->
</div>
</body>
</html>